(()=>{
    interface Iperson{
        firstName:string
        lastName:string
    }


    class Person{
        firstName:string
        lastName:string
        fullName:string
        constructor(firstName:string,lastName:string){
            this.firstName = firstName
            this.lastName = lastName
            this.fullName = this.firstName+this.lastName

        }
    }

    function shouwFullName(person: Iperson){
        return person.firstName+person.lastName
    }


    const person  = new Person('gg','hello')
    console.log(person.fullName)
})()